const mongoose = require('mongoose');
module.exports = () => {
    let schema = new mongoose.Schema({
        username:String,//邮箱
        password:String,
        phone:String,
        idCard:String,
        status:{
            type:Number,
            default: 0 //0身份证1护照2其他
        },
        name: String,//姓名
        email:String,//邮箱
        deletedAt: Date,
        createdAt: Date,
        updatedAt: Date,
    }, {collection: 'tbl_user'});

    return schema;
    //return mongoose.model('Active', schema);
};